<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>jsddk</title>
	<!-- 引入JS -->
	<script src="../src/jquery-1.9.1.min.js"></script>
    <script src="https://res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
</head>
<body>
    
    <script>
        var getjssdkdata = {
            method: 'getjssdk',
            url: window.location.href,
            openid: 'oVxc7t6namsPsguoeYtF4P7Oqk5E'

		}
		
		var ajaxUrl ='xxxxxxxx';
		$.post(ajaxUrl, getjssdkdata, function(res) {
			res = JSON.parse(res)
			wx.config({
				debug: false,
				appId: res.appid,
				timestamp: res.timestamp,
				nonceStr: res.noncestr,
				signature: res.signature,
				jsApiList: [
					'chooseImage',//选择图片
					'uploadImage',//上传图片
					'closeWindow',//关闭窗口
					'openEnterpriseContact',
					'scanQRCode',
					'onMenuShareAppMessage',
					'onMenuShareTimeline',
					'getLocation',//获取经纬度
					'checkJsApi',
					'addCard',
					'startRecord',
					'stopRecord',
					'onVoiceRecordEnd',
					'playVoice',
					'pauseVoice',
					'stopVoice',
					'onVoicePlayEnd',
					'uploadVoice',
					'downloadVoice',
					'chooseCard',
					'openCard'
				]
			});
		})	
    
    </script>
</body>
</html>